package com.alibaba.webx.tutorial1.app1.service;

import java.util.List;

import com.alibaba.webx.tutorial1.app1.vo.Role;


public interface RoleService {
	
	/**
	 * 超级管理员的角色名
	 */
	public static final String SUPERADMINROLE = "SUPERADMIN"; 
	
	/**
	 * 超级管理员，可以使用后台所有功能
	 */
	public static final String SUPERADMIN = "65506,1583";
	
	public int countAll();
	
	public Role getRole(Integer id);
	
	public Boolean deleteRole(Integer roleId) throws Exception;
    
	public Integer addRole(String roleName) throws Exception;
    
    public Boolean updateRole(Role role) throws Exception;
	
}
